package sz.szsmk.citizencard.ui.fragment;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import sz.szsmk.citizencard.R;
import sz.szsmk.citizencard.databinding.ServiceSerFragmentBinding;
import sz.szsmk.citizencard.mvp.contract.IAllServiceContact;
import sz.szsmk.citizencard.mvp.presenter.AllServicePresenter;
import sz.szsmk.citizencard.ui.adapter.AllServiceAdapter;
import sz.szsmk.citizencard.ui.base.IBaseFragment;

/**
 * Copyright (c)2018
 * author: zdh
 * created on: 2018/7/12 10:02
 * description:
 */
public class ServiceSerFragment extends IBaseFragment <AllServicePresenter, ServiceSerFragmentBinding>
        implements IAllServiceContact.IAllServiceView {

    public static ServiceSerFragment getInstance() {
        ServiceSerFragment sf = new ServiceSerFragment();
        return sf;
    }


    @Override
    protected int attachLayoutRes() {
        return R.layout.service_ser_fragment;
    }

    @Override
    protected void initInjector() {
    }

    @Override
    protected void initViews() {
        RecyclerView allSerRv = dataBinding.allSerRv;
        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());
        allSerRv.setLayoutManager(linearLayoutManager);
        AllServiceAdapter allTypeAdapter = new AllServiceAdapter(getActivity());
        allSerRv.setAdapter(allTypeAdapter);
    }

    @Override
    protected void updateViews() {

    }

    @Override
    public void updataError() {

    }

    @Override
    public void getNewsInfoSucc() {

    }

}
